﻿<UserControl x:Class="HOG.Controls.OptionsControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
    xmlns:im="clr-namespace:Microsoft.Expression.Interactivity.Media;assembly=Microsoft.Expression.Interactions"
	xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
    xmlns:shaders="clr-namespace:HOG.Shaders"
	Width="900" Height="600">
    <Border>
        <Border.Effect>
            <shaders:BrightnessEffect x:Name="brightness" Brightness="0" />
        </Border.Effect>
        <Border>
            <Border.Effect>
                <shaders:ContrastEffect x:Name="contrast" Contrast="0.5" />
            </Border.Effect>
            <Border>
                <Border.Effect>
                    <shaders:GammaEffect x:Name="gamma" Gamma="1" />
                </Border.Effect>
                <Canvas x:Name="Options" Height="600" Width="900" Canvas.Left="0" Canvas.Top="0">
                    <Image Height="600" Width="900" Source="/HOG;Component/Images/Interface/Pauza.png" Stretch="Fill"/>
                    <Slider x:Name="lblBrightness" Height="41" Style="{StaticResource HOGSliderStyle1}" Minimum="-1.0" Maximum="1.0" Value="0.0" Width="252" Canvas.Left="360" Canvas.Top="193" ValueChanged="lblBrightness_ValueChanged"/>
                    <Slider x:Name="lblContrast" Height="41" Style="{StaticResource HOGSliderStyle1}" Minimum="0" Maximum="10.0" Value="1.0" Width="252" Canvas.Left="360" Canvas.Top="276" ValueChanged="lblContrast_ValueChanged"/>
                    <Slider x:Name="lblGamma" Height="41" Style="{StaticResource HOGSliderStyle1}" Minimum="0.1" Maximum="1.0" Value="1.0" Width="252" Canvas.Left="360" Canvas.Top="346" ValueChanged="lblGamma_ValueChanged"/>
                    <Button Height="59" Width="142" Content="OK" Canvas.Left="322" Canvas.Top="367" Style="{StaticResource ButtonHOGStyle}" Background="#FF323232" FontWeight="Bold" FontFamily="Arial Black" FontSize="32" RenderTransformOrigin="0.5,0.5" Click="Button_Ok">
                        <Button.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.4" ScaleY="0.4"/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Button.RenderTransform>
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Click">
                                <im:PlaySoundAction IsEnabled="True" Source="/HOG;Component/Sounds/sound_button_click.mp3" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                    </Button>
                    <Button Height="59" Width="262" Content="{Binding Source={StaticResource CustomLocStrings}, Path=LocalizedStrings.Options_Default}" Canvas.Left="405" Canvas.Top="367" Style="{StaticResource ButtonHOGStyle}" Background="#FF323232" FontWeight="Bold" FontFamily="Arial Black" FontSize="32" RenderTransformOrigin="0.5,0.5" Click="Button_Default">
                        <Button.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.4" ScaleY="0.4"/>
                                <SkewTransform/>
                                <RotateTransform/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Button.RenderTransform>
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Click">
                                <im:PlaySoundAction IsEnabled="True" Source="/HOG;Component/Sounds/sound_button_click.mp3" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                    </Button>
                </Canvas>
            </Border>
        </Border>
    </Border>
</UserControl>
